using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Dimok.Web.UI;
using Dimok.Aspx.Manager;

namespace Dimok.Web.UI {
	public partial class UserControlHTC : UserControlClientSafe {
		protected virtual UOX uox { 
			get {
				Page_AL page = this.Page as Page_AL;
				if (page == null) throw new InvalidCastException("Parent page must implement Page_AL class.");
				return page.uox; 
			} 
		}

		protected override void OnLoad(EventArgs e) {
			base.OnLoad(e);
			if ((ID + "") != "") Attributes.Add("ID", ID);
			Control c = FindControl("ltrAttrs");
			if( c != null)((Literal)c).Text = User.UserPage.BuildAttributes(Attributes);
		}
	}
}
